import 'ding_rtc_def.dart';

class DingRtcListener {

  final void Function(int errCode, String errMsg)? onError;
  final void Function(int result, String userId)? onEnterRoom;
  final void Function(int result)? onExitRoom;
  final void Function(String userId)? onRemoteUserEnterRoom;
  final void Function(String userId, DingRtcUserOfflineReason reason)? onRemoteUserLeaveRoom;
  final void Function(String userId, DingRtcAudioTrack audioTrack, DingRtcVideoTrack videoTrack)? onRemoteStateUpdated;
  //快照结果，成功返回0；快照文件名
  final void Function(String userId, DingRtcVideoTrack videoTrack, String path, bool success)? onSnapshotComplete;

  DingRtcListener({
    this.onError,
    this.onEnterRoom, this.onExitRoom,
    this.onRemoteUserEnterRoom, this.onRemoteUserLeaveRoom,
    this.onRemoteStateUpdated,
    this.onSnapshotComplete,
  });
}